Document Solutions for Word
GrapeCity.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / XmlMapping Class / SetMapping Method / SetMapping<T>(Expression<Func<T>>,Boolean) Method
The expression of a property from the BuiltInPropertyCollection which is mapped to the content control. Use it like this: SetMapping(() => document.Settings.BuiltInProperties.Author);
Whether the xml mapping supports a content control with ContentControlType.RichText type.

In This Topic
    SetMapping<T>(Expression<Func<T>>,Boolean) Method
    In This Topic
    Set mapping between a content control and an XML node stored within a Custom XML Data part in the document.
    Syntax
    'Declaration
     
    Public Overloads Function SetMapping(Of T)( _
       ByVal builtInDocumentProperty As System.Linq.Expressions.Expression(Of Func(Of T)), _
       Optional ByVal supportRichTextControl As System.Boolean _
    ) As System.String
    public System.string SetMapping<T>( 
       System.Linq.Expressions.Expression<Func<T>> builtInDocumentProperty,
       System.bool supportRichTextControl
    )

    Parameters

    builtInDocumentProperty
    The expression of a property from the BuiltInPropertyCollection which is mapped to the content control. Use it like this: SetMapping(() => document.Settings.BuiltInProperties.Author);
    supportRichTextControl
    Whether the xml mapping supports a content control with ContentControlType.RichText type.

    Type Parameters

    T

    Return Value

    Inner xml of the mapped node stored within a XmlDocument in the document.
    See Also